package ie.dkit.semanticPhotoWeb.client.dtos;

import java.io.Serializable;

public class TagDTO implements Serializable {

	private static final long serialVersionUID = 2823993572298756000L;

	public String tagString;

	public String editHref;

	public int weight;

	/**
	 * Indicates if a Tag is editable otherwise editHref just represent a
	 * selfLink
	 */
	public boolean editable;

	/**
	 * Needed by the GWT
	 * 
	 */
	public TagDTO() {
	}

	/**
	 * Used for the Client to insert a new Tag
	 * 
	 * @param tagString
	 */
	public TagDTO(String tagString) {
		this(tagString, null, 0, false);
	}

	/**
	 * Used from the Server
	 * 
	 * @param tagString
	 * @param editHref
	 */
	public TagDTO(String tagString, String editHref, int weight,
			boolean editable) {
		this.tagString = tagString;
		this.editHref = editHref;
		this.weight = weight;
		this.editable = editable;
	}

}
